/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.ws.modelo;

import javax.persistence.*;

@Entity
@DiscriminatorValue("VE")
public class Vendedor extends Representante {

    @ManyToOne (fetch=FetchType.LAZY)
    @JoinColumn(name="funcionariocodigo")
    private Supervisor supervisor;

    public Vendedor() {
    }

    public Supervisor getSupervisor() {
        return supervisor;
    }

    public void setSupervisor(Supervisor supervisor) {
        this.supervisor = supervisor;
    }


}
